package com.zjcode.cdcer.service;

import com.chinatechstar.component.commons.supports.PageData;
import com.zjcode.cdcer.model.basic.JsonObj;
import com.zjcode.cdcer.service.fallback.AnnualReportSummaryServiceFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author ZQM
 * @date 2023/10/12 17:12
 */
@FeignClient(value = "zjcode-chronic-disease-cancer-server", fallback = AnnualReportSummaryServiceFallback.class)
public interface AnnualReportSummaryService {

    @PostMapping("/cdcerserver/v1/annualReportSummary/add")
    JsonObj add(@RequestBody PageData pageData);

    @GetMapping("/cdcerserver/v1/annualReportSummary/selById")
    JsonObj selById(@RequestParam String id);

    @PostMapping("/cdcerserver/v1/annualReportSummary/selList")
    JsonObj selList(@RequestBody PageData pageData);

    @GetMapping("/cdcerserver/v1/annualReportSummary/del")
    JsonObj del(@RequestParam String id);

    @GetMapping("/cdcerserver/v1/annualReportSummary/showAllFile")
    JsonObj showAllFile(@RequestParam Long userId, @RequestParam Integer type, @RequestParam(required = false) String screeningYear);
}
